import javax.swing.JFrame;

public class Frame extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Panel panel;

	public Frame() {
		/* Created an object f frame so that the panel is created */
		panel = new Panel();
		/*
		 * Now attaching the panel whatever you will create to the frame because
		 * only panels are added to a frame
		 */
		setContentPane(panel);
		/* Setting the height and width of the frame */
		setSize(800, 400);
		/* setting the visibility to be true so that t is visible always */
		setVisible(true);
		/* On clicking the cross button at the top let the frame should close */
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void main(String args[]) throws Exception {
		@SuppressWarnings("unused")
		Frame frame = (Frame)Class.forName("Frame").newInstance();
		Database.createdatabase();
		Database.createTables();
	}

}
